#!/usr/bin/env ruby
#encoding: utf-8

module DB_VTB
  
  require 'active_record'
  
  class Interest < ActiveRecord::Base
    belongs_to :user, foreign_key: 'uid'
    has_many :notifies, foreign_key: 'iid'
    
    def after_initialize 
      self.notified ||= 0
      self.is_valid ||= 1
    end
  end
  
end
